home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 11 / FM Towns Free Software Collection 11.iso / t_os / tool / artemis2 / src / makeicon.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-01  |  408 b   |  26 lines

  1. #include <stdio.h>
  2. #include <egb.h>
  3. #include <msdos.cf>
  4. #include <ryosuke.h>
  5. #include <usrlib.h>
  6. #include <egbmac.h>
  7.  
  8. main()
  9. {
  10.     int i,j;
  11.     ginit();
  12.     gscreen(3);
  13.     TIFFinitwork();
  14.     TIFFload("icon.tif",0,0);
  15.     char wk[600];
  16.     int k;
  17.     for (i=0; i<2; i++)
  18.     {
  19.         EGB_GETBLOCKCOLOR(EGB_work, wk, 0+32*i,64,24,24,0);
  20.         for (k=0; k<24*24/8; k++)
  21.             printf("0x%02x,",wk[k]);
  22.         printf("\n");
  23.     }
  24. }
  25.  
  26.